package main

import (
	"net/http"
	"fmt"
	"blog/pkg/settings"
	"blog/routers"
)

func main() {

	router := routers.InitRouter()

	s := &http.Server{
		Addr:           fmt.Sprintf(":%d", settings.HttpPort),
		Handler:        router,
		ReadTimeout:    settings.ReadTimeOut,
		WriteTimeout:   settings.WriteTimeOut,
		MaxHeaderBytes: 1 << 20,
	}

	s.ListenAndServe()
}
